package com.ccp.dev.workflow.event;

import com.ccp.dev.workflow.model.ProcessRun;
import org.flowable.engine.impl.persistence.entity.ExecutionEntity;
import org.springframework.context.ApplicationEvent;

/**
 * ClassDescribe:
 * 流程结束事件
 * @author :wangcheng
 * Date: 2019-08-14
 */
public class ProcessEndEvent extends ApplicationEvent {

    private static final long serialVersionUID = -979336353592649186L;

    private ExecutionEntity executionEntity;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public ProcessEndEvent(ProcessRun source) {
        super(source);
    }

    public ExecutionEntity getExecutionEntity() {
        return executionEntity;
    }

    public void setExecutionEntity(ExecutionEntity executionEntity) {
        this.executionEntity = executionEntity;
    }
}
